//
//  OtherListTableViewCell.m
//  Project two framework
//
//  Created by rimi on 16/7/25.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "OtherListTableViewCell.h"
#import "ZZConfig.h"
@implementation OtherListTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self interface];
    }
    return self;
}

- (void)interface
{
    _backgroundImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 834, 55)];
    _backgroundImage.image = [UIImage imageNamed:@"line_11.png"];
    _backgroundImage.userInteractionEnabled = YES;
    [self.contentView addSubview:_backgroundImage];
    
    _number = [[UITextField alloc]initWithFrame:CGRectMake(15, 10, 110, 35)];
    _number.backgroundColor = [UIColor whiteColor];
    _number.textAlignment = NSTextAlignmentCenter;
    _number.font = [UIFont boldSystemFontOfSize:15];
    [self.contentView addSubview:self.number];
    
    _project = [[UILabel alloc]initWithFrame:CGRectMake(130, 0, 150, 55)];
    _project.textAlignment = NSTextAlignmentCenter;
    _project.font = [UIFont boldSystemFontOfSize:15];
    _project.numberOfLines = 2;
    _project.textColor = COLOR(129, 129, 129, 1);
    [self.contentView addSubview:self.project];
    
    _content = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_project.frame) + 10, 0, SCREEN_WIDTH / 2 - 40, 55)];
    _content.font = [UIFont systemFontOfSize:12];
    _content.numberOfLines = 0;
    _content.textAlignment = NSTextAlignmentLeft;
    _content.textColor = COLOR(129, 129, 129, 1);
    [self.contentView addSubview:self.content];
    
    _cancel = [UIButton buttonWithType:UIButtonTypeCustom];
    _cancel.frame = CGRectMake(CGRectGetMaxX(_content.frame) + 20, 10, 35, 35);
    [_cancel setImage:[UIImage imageNamed:@"-_46"] forState:UIControlStateNormal];
    [_cancel setImage:[UIImage imageNamed:@"关闭_05"] forState:UIControlStateSelected];
    [self.contentView addSubview:self.cancel];

}

@end
